package model;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "time")
public class Time implements Serializable
{	
	private static final long serialVersionUID = 7190419252976433535L;

	@XmlElement
	private String from = "";
	
	@XmlElement
	private String to = "";
	
	public Time() {}
	
	public Time(String from, String to) 
	{
		this.from = from;
		this.to = to;
	}
	
	public String toString()
	{
		return from + " - " + to;
	}

	public String getFrom()
	{
		return from;
	}

	public String getTo()
	{
		return to;
	}
}